import service from "@/utils/request"

export const loginService = (userAccount, password) => 
    service({
        url: '/sysUser/login',
        method: 'post',
        data: { userAccount, password }
    })

export const getUserInfoService = () => 
    service({
        url: '/sysUser/info',
        method: 'get'
    })

export const logoutService  = () => 
    service({
        url: '/sysUser/logout',
        method: 'delete'
    })
